public class OrderDetail {
    private int quantity;
    public double calculateSubTotal(Product product){
        return quantity * product.getPrice();
    }
    public double calculateWeight(Product product){
        return quantity * product.getWeight();
    }
}
